//
//  Message.h
//  ChatInterface_QQ
//
//  Created by admin on 2019/9/1.
//  Copyright © 2019 猫爷爷的酱醋茶. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

typedef enum
{
    MessageTypeMe = 0, //表示自己
    MessageTypeOther = 1 //表示别人
} MessageType;

@interface Message : NSObject

//消息内容
@property(nonatomic,copy)NSString *text;
//消息时间
@property(nonatomic,copy)NSString *time;
//消息类型
@property(nonatomic,assign)MessageType type;

//用来记录是否显示时间Label
@property(nonatomic,assign)BOOL hideTime;

- (instancetype)initWithDict:(NSDictionary *)dict;
+ (instancetype)messageWithDict: (NSDictionary *)dict;

@end

NS_ASSUME_NONNULL_END
